home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 123
/
(Vol 123) Jan 13 2011.iso
/
Games
/
plumber_2.swf
/
scripts
/
frame_45
/
DoAction_2.as
next >
Wrap
Text File
|
2011-01-13
|
1KB
|
68 lines
function displaypipes()
{
i = 1;
while(i < 78)
{
st = holder[i - 1];
if(st > 0)
{
attachMovie("pipeshell","pipe" + num,100 + num);
with(eval("pipe" + num))
{
pipe.gotoAndStop(st);
pipe.typeofpipe = st;
down = math.floor(num / 11);
across = num - down * 11;
_x = 59 + across * 60;
_y = 105 + down * 60;
pipe.n = num;
w = across;
v = down;
}
}
num++;
i++;
}
}
function wait()
{
if(go == 1)
{
gotoAndPlay(45);
}
}
function mainmenu()
{
clear();
removeMovieClip("gf");
gotoAndPlay(29);
}
if(music == 0)
{
musicclip.gotoAndStop(2);
}
clear();
score += bonus;
if(level >= 99)
{
gotoAndPlay(66);
}
use = 1;
moves = 0;
time = 0;
num = 0;
holder = new Array();
holder = levels[level].split(",");
displaypipes();
attachMovie("levelintro","lv",1000);
lv._x = 360;
lv._y = 240;
if(level > 25)
{
trace(level);
attachMovie("gflast","gf",1000);
gf._x = 360;
gf._y = 240;
resetgame();
}